package com.example.design_pattern.command;

/**
 * 开始播放的命令
 */
public class StartCommand implements Command {

    private AudioPlayer mAudioPlayer;

    public StartCommand(AudioPlayer mAudioPlayer){
        this.mAudioPlayer = mAudioPlayer;
    }


    @Override
    public void execute() {
        mAudioPlayer.start();
    }
}
